package org.ymjava.medical.wx.web;


import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.ymjava.medical.core.util.ResponseUtil;
import org.ymjava.medical.db.AllPackage.biz.ExamRoomClassBiz;
import org.ymjava.medical.db.AllPackage.entity.ExamRoomClass;

import java.util.List;

@RestController
@RequestMapping("/wx_answer/exam")
public class ExamController {

    private final Log logger = LogFactory.getLog(ExamController.class);

    @Autowired
    ExamRoomClassBiz examRoomClassBiz;

    @GetMapping("list")
    public Object getExamList(){

        List<ExamRoomClass> list_exam = examRoomClassBiz.get_list_sort();


        return ResponseUtil.ok(list_exam);
    }

}
